/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tv.venta.vista;

import java.io.Serializable;

/**
 *
 * @author ctrosch
 */
public class EstadisticaPK implements Serializable {

    private String nrocta;
    private String tippro;
    private String artcod;

    public EstadisticaPK() {
    }

    public EstadisticaPK(String nrocta, String tippro, String artcod) {
        this.nrocta = nrocta;
        this.tippro = tippro;
        this.artcod = artcod;
    }

    public String getArtcod() {
        return artcod;
    }

    public void setArtcod(String artcod) {
        this.artcod = artcod;
    }

    public String getNrocta() {
        return nrocta;
    }

    public void setNrocta(String nrocta) {
        this.nrocta = nrocta;
    }

    public String getTippro() {
        return tippro;
    }

    public void setTippro(String tippro) {
        this.tippro = tippro;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EstadisticaPK other = (EstadisticaPK) obj;
        if ((this.nrocta == null) ? (other.nrocta != null) : !this.nrocta.equals(other.nrocta)) {
            return false;
        }
        if ((this.tippro == null) ? (other.tippro != null) : !this.tippro.equals(other.tippro)) {
            return false;
        }
        if ((this.artcod == null) ? (other.artcod != null) : !this.artcod.equals(other.artcod)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 17 * hash + (this.nrocta != null ? this.nrocta.hashCode() : 0);
        hash = 17 * hash + (this.tippro != null ? this.tippro.hashCode() : 0);
        hash = 17 * hash + (this.artcod != null ? this.artcod.hashCode() : 0);
        return hash;
    }
    

}
